﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TelerikAcademyOopProject
{
    public static class TraderFactory
    {
        public static Trader setNewTrader(string traderType)
        {
            if (traderType == "Seller")
            {
                //return new Seller(traderId, traderName, traderPass, traderSetType, traderAccount);
                return new Seller();
            }

            if (traderType == "Buyer")
            {
                //return new Buyer(traderId, traderName, traderPass, traderSetType, traderAccount);
                return new Buyer();
            }

            throw new StockException("No such item Implementation existas in current Stock List");
        }

        

    }
}
